.class Lcom/estrongs/android/taskmanager/y;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/CacheManWrapper;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/CacheManWrapper;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    const v3, 0x7f070058

    const/4 v2, 0x2

    const/4 v8, 0x1

    const/16 v7, 0x8

    const/4 v6, 0x0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->progress:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->content:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->cacheSummary:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v1, v1, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mActivity:Landroid/app/Activity;

    invoke-virtual {v1, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-array v2, v2, [Ljava/lang/Object;

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v3, v3, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mList:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v2, v6

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v3, v3, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mActivity:Landroid/app/Activity;

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-wide v4, v4, Lcom/estrongs/android/taskmanager/CacheManWrapper;->totalCacheSize:J

    invoke-static {v3, v4, v5}, Landroid/text/format/Formatter;->formatFileSize(Landroid/content/Context;J)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v8

    invoke-static {v1, v2}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mListView:Landroid/widget/ListView;

    invoke-virtual {v0, v7}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->empty:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mAdapter:Lcom/estrongs/android/taskmanager/l;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v1, v1, Lcom/estrongs/android/taskmanager/CacheManWrapper;->pkgStatsMap:Ljava/util/HashMap;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/taskmanager/l;->a(Ljava/util/HashMap;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mListView:Landroid/widget/ListView;

    invoke-virtual {v0, v6}, Landroid/widget/ListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->empty:Landroid/view/View;

    invoke-virtual {v0, v7}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->cacheSummary:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v1, v1, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mActivity:Landroid/app/Activity;

    invoke-virtual {v1, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-array v2, v2, [Ljava/lang/Object;

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v3, v3, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mList:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v2, v6

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v3, v3, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mActivity:Landroid/app/Activity;

    iget-object v4, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-wide v4, v4, Lcom/estrongs/android/taskmanager/CacheManWrapper;->totalCacheSize:J

    invoke-static {v3, v4, v5}, Landroid/text/format/Formatter;->formatFileSize(Landroid/content/Context;J)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v8

    invoke-static {v1, v2}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/y;->a:Lcom/estrongs/android/taskmanager/CacheManWrapper;

    iget-object v0, v0, Lcom/estrongs/android/taskmanager/CacheManWrapper;->mAdapter:Lcom/estrongs/android/taskmanager/l;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/l;->notifyDataSetChanged()V

    goto :goto_0
.end method
